package com.ly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ly.entity.JoinActivity;
import com.ly.pojo.vo.JoinActivityVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黑渊白花
 * @date : 2025/2/8 22:08
 */
@Mapper
public interface JoinActivityMapper extends BaseMapper<JoinActivity> {

    IPage<JoinActivityVO> getPageById(
            @Param("page") IPage<JoinActivityVO> page,
            @Param("stuName") String stuName,
            @Param("actId") Integer actId);

    IPage<JoinActivityVO> getAllPage(
            @Param("page") IPage<JoinActivityVO> page,
            @Param("teamName") String teamName,
            @Param("stuName") String stuName,
            @Param("actName") String actName);

    IPage<JoinActivityVO> getPage(
            @Param("page") IPage<JoinActivityVO> page,
            @Param("teamId") Integer teamId,
            @Param("stuName") String stuName,
            @Param("actName") String actName);

    List<JoinActivityVO> getAll(@Param("actId") Integer actId);

}
